package com.hrm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Vacation {
    private Integer vacationId;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")//设置中国时区
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date vacationBegin;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date vacationEnd;

    private String vacationName;

    private Integer officialVacation;

    public Integer getVacationId() {
        return vacationId;
    }

    public void setVacationId(Integer vacationId) {
        this.vacationId = vacationId;
    }

    public Date getVacationBegin() {
        return vacationBegin;
    }

    public void setVacationBegin(Date vacationBegin) {
        this.vacationBegin = vacationBegin;
    }

    public Date getVacationEnd() {
        return vacationEnd;
    }

    public void setVacationEnd(Date vacationEnd) {
        this.vacationEnd = vacationEnd;
    }

    public String getVacationName() {
        return vacationName;
    }

    public void setVacationName(String vacationName) {
        this.vacationName = vacationName == null ? null : vacationName.trim();
    }

    public Integer getOfficialVacation() {
        return officialVacation;
    }

    public void setOfficialVacation(Integer officialVacation) {
        this.officialVacation = officialVacation;
    }
}